package gtkwire.widget;

import gtkwire.*;

/**
*A base class for menu objects. Not to be instantiated.
*/
public abstract class GtkMenuShell extends GtkWidget
{

	protected GtkMenuShell()
	{
		super();
	}

	protected GtkMenuShell( String name, GladeKey key )
	{
		super( name, key );
	}

	/**
	*Adds a new GtkMenuItem to the end of the menu shell's item list.
	*/
	public void append( GtkMenuShell menu_shell, GtkMenuItem child)
	{
		app().sendCommand( name, GTKWireCommand.APPEND,  child.getName() );
	}

	/**
	*Adds a new GtkMenuItem to the beginning of the menu shell's item list.
	*/
	public void prepend( GtkMenuShell menu_shell, GtkMenuItem child)
	{
		app().sendCommand( name, GTKWireCommand.PREPEND,  child.getName() );
	}

	/**
	*Adds a new GtkMenuItem to the menu shell's item list at the position indicated by position.
	*/
	public void insert( GtkMenuShell menu_shell, GtkMenuItem child)
	{
		app().sendCommand( name, GTKWireCommand.INSERT,  child.getName() );
	}

}//end class